package com.tarena.lbs.content.service;

import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.content.pojo.param.ArticleActionParam;
import com.tarena.lbs.content.pojo.param.ArticleContentParam;
import com.tarena.lbs.content.pojo.query.ArticleQuery;
import com.tarena.lbs.content.pojo.vo.ArticleActionPageResultVO;
import com.tarena.lbs.content.pojo.vo.ArticleVO;

import java.util.Set;

public interface ArticleService {


    PageResult<ArticleVO> pageList(ArticleQuery articleQuery);

    int addArticle(ArticleContentParam param) throws BusinessException;

    int updateArticle(ArticleContentParam param) throws BusinessException;

    ArticleVO articleDetail(String id);

    int deleteArticle(String id);

    Set<String> articleLabels(ArticleQuery articleQuery);

    int articleBehavior(ArticleActionParam param);

    ArticleActionPageResultVO getBehaviorLists(ArticleQuery query);
}
